export default {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  menuWidth: 280,
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  size: 'small',
  dicUrl: '/admin/dict/type/{{key}}',
  column: [
    {
      fixed: true,
      label: 'id',
      prop: 'userId',
      span: 24,
      hide: true,
      editDisabled: true,
      addVisdiplay: false
    },
    {
      fixed: true,
      label: '用户名',
      prop: 'username',
      fixed: true,
      editDisabled: true,
      solt: true,
      span: 24,
      search: true,
      rules: [
        {
          required: true,
          message: '请输入用户名'
        },
        {
          min: 3,
          max: 20,
          message: '长度在 3 到 20 个字符',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '密码',
      prop: 'password',
      type: 'password',
      value: '',
      hide: true,
      span: 24,
      rules: [
        {
          min: 6,
          max: 20,
          message: '长度在 6 到 20 个字符',
          trigger: 'blur'
        }
      ]
    },
    {
      width: 120,
      label: '手机号',
      prop: 'phone',
      type: 'phone',
      value: '',
      span: 24,
      rules: [
        {
          min: 6,
          max: 20,
          message: '长度在 11 个字符',
          trigger: 'blur'
        }
      ]
    },
    {
      width: 120,
      label: '姓名',
      prop: 'realname',
      span: 24,
      rules: [
        {
          required: true,
          message: '请输入姓名'
        },
        {
          min: 3,
          max: 20,
          message: '长度在 3 到 20 个字符',
          trigger: 'blur'
        }
      ]
    },
    {
      width: 100,
      overHidden: true,
      label: '所属企业',
      prop: 'community',
      // multiple: true,
      formsolt: true,
      solt: true,
      span: 24,
      rules: [
        {
          required: true,
          message: '请选择园区',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '所属部门',
      prop: 'deptId',
      type: 'tree',
      dicUrl: '/admin/dept/getTreeByCurrentUser',
      dicData: 'dept',
      props: {
        label: 'name',
        value: 'id'
      },
      span: 24,
      rules: [
        {
          required: true,
          message: '请选择部门',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '角色',
      prop: 'role',
      formsolt: true,
      solt: true,
      overHidden: true,
      span: 24,
      rules: [
        {
          required: true,
          message: '请选择角色',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '人员类型',
      prop: 'type',
      type: 'select',
      dicData: 'user_type',
      span: 24
    },
    {
      label: '职务',
      prop: 'duty',
      type: 'select',
      dicData: 'user_duty',
      span: 24
    },
    {
      label: '状态',
      prop: 'delFlag',
      type: 'select',
      solt: true,
      span: 24,
      dicData: 'user_status',
      rules: [
        {
          required: true,
          message: '请选择状态',
          trigger: 'blur'
        }
      ]
    },
    {
      width: 180,
      label: '创建时间',
      prop: 'createTime',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm',
      valueFormat: 'timestamp',
      editDisabled: true,
      addVisdiplay: false,
      span: 24
    }
  ]
}
